商户查询用户欠款状态
商户通过调用该接口可主动查询微信用户的欠款状态。
请求参数 | 类型 | 描述 |
---|---|---|
openid | string | 商户appid下的用户标识 |
php
$instance->v3->eduschoolpay->users->_openid_->debtState->getAsync([
'openid' => 'oUpF8uMuAJOM2pxb1Q',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/eduschoolpay/users/{openid}/debt-state')->getAsync([
'openid' => 'oUpF8uMuAJOM2pxb1Q',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/eduschoolpay/users/{openid}/debt-state']->getAsync([
'openid' => 'oUpF8uMuAJOM2pxb1Q',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->eduschoolpay->users->_openid_->debtState->get([
'openid' => 'oUpF8uMuAJOM2pxb1Q',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/eduschoolpay/users/{openid}/debt-state')->get([
'openid' => 'oUpF8uMuAJOM2pxb1Q',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/eduschoolpay/users/{openid}/debt-state']->get([
'openid' => 'oUpF8uMuAJOM2pxb1Q',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
appid | string | 商户appid |
openid | string | 商户appid下的用户标识 |
state | string | 用户状态 |
debt_count | integer | 当前用户欠款笔数 |
update_time | string | 用户欠款状态更新时间 |
参阅 官方文档